package com.xuzao.developer.enums;

import lombok.Getter;

/**
 * @author xuzao
 * @description
 * @date 2019-08-12 15:55
 */
public enum DevelopPlanStatusEnum {
    init(0,"未开始"),
    dev(1,"开发中"),
    joint(2,"联调中"),
    test(3,"测试中"),
    prod(4,"待发布");
    @Getter
    private int code;
    @Getter
    private String desc;

    DevelopPlanStatusEnum(int code,String desc){
        this.code = code;
        this.desc = desc;
    }

    public static DevelopPlanStatusEnum valueOf (int code){
        for(DevelopPlanStatusEnum item:DevelopPlanStatusEnum.values()){
            if (code == item.code){
                return item;
            }
        }
        return null;
    }
}
